package com.tbit.uqbike.client.ordertrace;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * 校验规则类型
 *
 *
 * @author <a href="mailto:chen.chaoxiong@tbit.com.cn">ChenChaoXiong</a>
 * @since 2024/7/17
 */
public enum RuleType {

    JSON_SCHEMA("json_schema","json schema"),
    REGEX("regex","正则表达式"),
    JAVA("java","java代码"),
    GROOVY("groovy","groovy脚本"),

    NO_OP("no_op","无操作");

    @EnumValue
    private String type;
    private String desc;

    RuleType(String type,String desc) {
        this.desc = desc;
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public String getType() {
        return type;
    }
}
